package com.jx.driving.response;

import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 客户端通用应答消息
 * 
 * @author wuxiaozeng
 *
 */
@TerminalAnnotation
public class Terminal0x0001Response extends AbstractResponse {

    public Terminal0x0001Response(Integer sequence, Integer id, ResponseResultStatus result) {
	super();
	this.sequence = sequence;
	this.id = id;
	this.result = (short) result.ordinal();
    }

    public Terminal0x0001Response() {
	super();
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0x0001Response [sequence=").append(sequence).append(", id=").append(id)
		.append(", result=").append(result).append("]");
	return builder.toString();
    }

}
